package com.jiyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.model.Catalog;
import com.jiyun.model.Train;
import org.apache.ibatis.annotations.Select;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/9 16 13
 * */
public interface CatalogMapper extends BaseMapper<Catalog> {
@Select("select * from catalog where id=#{integer}")
    Catalog findOne(Integer integer);
@Select("select count(id) from catalog where pid=#{id}")
    Integer showCount(Integer id);
}
